//
//  FoodView.m
//  Karaoke
//
//  Created by 蒋 浩锋 on 12-8-12.
//  Copyright (c) 2012年 Jiang Haofeng. All rights reserved.
//

#import "FoodView.h"
#import "SDWebImageManager.h"

@implementation FoodView
@synthesize lblFoodName;
@synthesize lblFoodEnName;
@synthesize FoodPirceAndUnit;
@synthesize foodImage;
@synthesize snapshotStackView;
@synthesize btnSelect;
@synthesize selectedImg;
@synthesize lblSeleceedNum;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/
-(id)initWithXib
{
    self = [[[NSBundle mainBundle] loadNibNamed:@"FoodView" owner:self options:nil] lastObject];
    if (self)
    {
        self.foodImage.layer.cornerRadius = 8;
        self.snapshotStackView.displayAsStack = YES;
        self.snapshotStackView.DefaultImage = [UIImage imageNamed:@"DefaultImage.jpg"];
//        [self.foodImage setContentMode:UIViewContentModeScaleAspectFit];
       
    }
    return self;
}
@end
